package com.manager.common.constant;

public interface DateConstants {

    enum dateType{

        YEAR("year","年"),
        MONTH("month","月"),
        DAY("day","天");

        private String code;
        private String name;
        dateType (String code, String name) {
            this.code = code;
            this.name = name;
        }
        public String getCode() {
            return code;
        }
        public String getName() {
            return name;
        }

    }

    enum dateFormat{

        YEAR("yyyy","年"),
        YEAR_MONTH("yyyy-MM","年-月"),
        YEAR_MONTH_DAY("yyyy-MM-dd","年-月-天"),
        MONTH_DAY("MM-dd","月-天"),
        DAY("dd","天");

        private String code;
        private String name;
        dateFormat (String code, String name) {
            this.code = code;
            this.name = name;
        }
        public String getCode() {
            return code;
        }
        public String getName() {
            return name;
        }

    }

    public static void main(String[] args) {
        dateType dateType;
    }

}
